<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>高级人机验证系统 - 更新说明</title>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
            color: #333;
            line-height: 1.6;
            padding: 20px;
            min-height: 100vh;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            text-align: center;
            margin-bottom: 40px;
            padding: 30px 0;
            background: linear-gradient(to right, #4b6cb7, #182848);
            border-radius: 15px;
            color: white;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            font-weight: 700;
        }
        
        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .current-version {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .version-info h2 {
            font-size: 1.8rem;
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        .version-badge {
            display: inline-block;
            padding: 5px 15px;
            background: #10B981;
            color: white;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .status-badge {
            padding: 8px 16px;
            background: #4b6cb7;
            color: white;
            border-radius: 8px;
            font-weight: 600;
        }
        
        .download-section {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .download-section h2 {
            font-size: 1.8rem;
            color: #2c3e50;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .platform-selector {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }
        
        .platform-btn {
            padding: 12px 25px;
            border: 2px solid #4b6cb7;
            background: white;
            color: #4b6cb7;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .platform-btn:hover, .platform-btn.active {
            background: #4b6cb7;
            color: white;
        }
        
        .download-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .download-card {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            transition: transform 0.3s ease;
        }
        
        .download-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .download-card h3 {
            font-size: 1.2rem;
            color: #2c3e50;
            margin-bottom: 15px;
        }
        
        .download-btn {
            display: inline-block;
            padding: 10px 20px;
            background: #4b6cb7;
            color: white;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            transition: background 0.3s ease;
        }
        
        .download-btn:hover {
            background: #3a5999;
        }
        
        .highlighted {
            border: 3px solid #4b6cb7;
            background: #e8f0fe;
        }
        
        .git-section {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            text-align: center;
        }
        
        .git-section h2 {
            font-size: 1.8rem;
            color: #2c3e50;
            margin-bottom: 20px;
        }
        
        .git-command {
            background: #2d3748;
            color: #e2e8f0;
            padding: 15px;
            border-radius: 8px;
            font-family: monospace;
            margin: 20px 0;
            text-align: left;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            overflow-x: auto;
        }
        
        .git-link {
            display: inline-block;
            padding: 12px 25px;
            background: #24292e;
            color: white;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            margin-top: 15px;
        }
        
        .git-link:hover {
            background: #1a1f24;
        }
        
        .changelog-section {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .changelog-section h2 {
            font-size: 1.8rem;
            color: #2c3e50;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .timeline {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
        }
        
        .timeline::after {
            content: '';
            position: absolute;
            width: 6px;
            background: #4b6cb7;
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -3px;
            border-radius: 10px;
        }
        
        .update-card {
            position: relative;
            width: 45%;
            padding: 25px;
            background: white;
            border-radius: 15px;
            margin-bottom: 40px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }
        
        .left {
            left: 0;
        }
        
        .right {
            left: 55%;
        }
        
        .update-card::after {
            content: '';
            position: absolute;
            width: 25px;
            height: 25px;
            background: white;
            border: 4px solid #4b6cb7;
            top: 32px;
            border-radius: 50%;
            z-index: 1;
        }
        
        .left::after {
            right: -17px;
        }
        
        .right::after {
            left: -17px;
        }
        
        .version-tag {
            position: absolute;
            top: 20px;
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: 700;
            color: white;
        }
        
        .left .version-tag {
            right: -70px;
            background: #4b6cb7;
        }
        
        .right .version-tag {
            left: -70px;
            background: #182848;
        }
        
        .update-date {
            font-size: 0.9rem;
            color: #6c757d;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .update-title {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: #2c3e50;
        }
        
        .update-content {
            margin-bottom: 20px;
        }
        
        .update-content h3 {
            font-size: 1.1rem;
            margin: 15px 0 10px;
            color: #3498db;
        }
        
        .features-list, .fixes-list {
            padding-left: 20px;
            margin-bottom: 10px;
        }
        
        .features-list li {
            color: #27ae60;
            margin-bottom: 8px;
            list-style-type: none;
            position: relative;
            padding-left: 25px;
        }
        
        .features-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #27ae60;
            font-weight: bold;
        }
        
        .fixes-list li {
            color: #e74c3c;
            margin-bottom: 8px;
            list-style-type: none;
            position: relative;
            padding-left: 25px;
        }
        
        .fixes-list li::before {
            content: "✗";
            position: absolute;
            left: 0;
            color: #e74c3c;
        }
        
        footer {
            text-align: center;
            margin-top: 50px;
            padding: 20px;
            color: #6c757d;
            font-size: 0.9rem;
        }
        
        @media screen and (max-width: 768px) {
            .timeline::after {
                left: 31px;
            }
            
            .update-card {
                width: 100%;
                padding-left: 70px;
                padding-right: 25px;
            }
            
            .update-card::after {
                left: 15px;
            }
            
            .left, .right {
                left: 0;
            }
            
            .left .version-tag, .right .version-tag {
                left: 15px;
                top: 20px;
                right: auto;
            }
            
            .download-options {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1><i class="fa fa-shield"></i> 高级人机验证系统</h1>
            <p class="subtitle">更新说明与下载页面</p>
        </header>
        
        <div class="current-version">
            <div class="version-info">
                <h2>当前版本 <span class="version-badge">v1.5.0</span></h2>
                <p>稳定版 | 发布于 2023年11月15日</p>
            </div>
            <div class="status-badge">
                <i class="fa fa-check-circle"></i> 最新稳定版
            </div>
        </div>
        
        <div class="download-section">
            <h2>下载源代码</h2>
            
            <div class="platform-selector">
                <button class="platform-btn" data-platform="windows">Windows</button>
                <button class="platform-btn" data-platform="macos">macOS</button>
                <button class="platform-btn" data-platform="linux">Linux</button>
                <button class="platform-btn active" data-platform="all">所有平台</button>
            </div>
            
            <div class="download-options">
                <div class="download-card" data-platform="all">
                    <h3>ZIP 压缩包</h3>
                    <p>适用于所有操作系统</p>
                    <a href="https://raw.gitcode.com/qinyz/CAPTCHA/archive/refs/heads/%E7%A8%B3%E5%AE%9A%E7%89%88v1.5.0.zip" class="download-btn">下载 ZIP</a>
                </div>
                
                <div class="download-card" data-platform="linux macos">
                    <h3>Tar.Gz 压缩包</h3>
                    <p>适用于 Linux 和 macOS</p>
                    <a href="https://raw.gitcode.com/qinyz/CAPTCHA/archive/refs/heads/%E7%A8%B3%E5%AE%9A%E7%89%88v1.5.0.tar.gz" class="download-btn">下载 Tar.Gz</a>
                </div>
                
                <div class="download-card" data-platform="linux macos">
                    <h3>Tar.Bz2 压缩包</h3>
                    <p>适用于 Linux 和 macOS</p>
                    <a href="https://raw.gitcode.com/qinyz/CAPTCHA/archive/refs/heads/%E7%A8%B3%E5%AE%9A%E7%89%88v1.5.0.tar.bz2" class="download-btn">下载 Tar.Bz2</a>
                </div>
                
                <div class="download-card" data-platform="linux macos">
                    <h3>Tar 压缩包</h3>
                    <p>适用于 Linux 和 macOS</p>
                    <a href="https://raw.gitcode.com/qinyz/CAPTCHA/archive/refs/heads/%E7%A8%B3%E5%AE%9A%E7%89%88v1.5.0.tar" class="download-btn">下载 Tar</a>
                </div>
            </div>
        </div>
        
        <div class="git-section">
            <h2>GitCode 仓库</h2>
            <p>通过 Git 克隆获取最新源代码</p>
            
            <div class="git-command">
                git clone https://gitcode.com/qinyz/CAPTCHA.git
            </div>
            
            <a href="https://gitcode.com/qinyz/CAPTCHA" class="git-link" target="_blank">
                <i class="fa fa-external-link"></i> 访问 GitCode 仓库
            </a>
        </div>
        
        <div class="changelog-section">
            <h2>版本历史</h2>
            
            <div class="timeline">
                <!-- 版本 1.5.0 -->
                <div class="update-card left">
                    <div class="version-tag">v1.5.0</div>
                    <div class="update-date">
                        <i class="fa fa-calendar"></i> 2023年11月15日
                    </div>
                    <h2 class="update-title">管理控制台与多语言支持</h2>
                    <div class="update-content">
                        <h3>新增功能</h3>
                        <ul class="features-list">
                            <li>添加管理控制台界面</li>
                            <li>实现验证统计数据导出功能</li>
                            <li>新增暗色主题支持</li>
                            <li>添加多语言支持框架</li>
                        </ul>
                        
                        <h3>改进优化</h3>
                        <ul class="features-list">
                            <li>优化滑块验证的移动端体验</li>
                            <li>减少验证码生成资源消耗</li>
                            <li>改进数学验证码的难度平衡</li>
                        </ul>
                        
                        <h3>问题修复</h3>
                        <ul class="fixes-list">
                            <li>修复Safari浏览器兼容性问题</li>
                            <li>修复高频请求下的性能下降问题</li>
                            <li>修正验证成功率的统计误差</li>
                        </ul>
                    </div>
                </div>
                
                <!-- 版本 1.4.0 -->
                <div class="update-card right">
                    <div class="version-tag">v1.4.0</div>
                    <div class="update-date">
                        <i class="fa fa-calendar"></i> 2023年10月8日
                    </div>
                    <h2 class="update-title">图像验证与安全增强</h2>
                    <div class="update-content">
                        <h3>新增功能</h3>
                        <ul class="features-list">
                            <li>引入图像选择验证码类型</li>
                            <li>添加验证频率限制功能</li>
                            <li>实现验证结果API接口</li>
                        </ul>
                        
                        <h3>安全更新</h3>
                        <ul class="features-list">
                            <li>增强验证码加密强度</li>
                            <li>修复已知安全漏洞</li>
                        </ul>
                    </div>
                </div>
                
                <!-- 版本 1.3.0 -->
                <div class="update-card left">
                    <div class="version-tag">v1.3.0</div>
                    <div class="update-date">
                        <i class="fa fa-calendar"></i> 2023年8月20日
                    </div>
                    <h2 class="update-title">智能测试与统计分析</h2>
                    <div class="update-content">
                        <h3>新增功能</h3>
                        <ul class="features-list">
                            <li>添加智能测试工具</li>
                            <li>实现验证成功/失败统计</li>
                            <li>新增多种验证码样式</li>
                        </ul>
                    </div>
                </div>
                
                <!-- 版本 1.2.0 -->
                <div class="update-card right">
                    <div class="version-tag">v1.2.0</div>
                    <div class="update-date">
                        <i class="fa fa-calendar"></i> 2023年7月5日
                    </div>
                    <h2 class="update-title">基础验证功能</h2>
                    <div class="update-content">
                        <h3>新增功能</h3>
                        <ul class="features-list">
                            <li>引入数学问题验证类型</li>
                            <li>添加滑块验证码</li>
                            <li>实现基础验证功能</li>
                        </ul>
                        
                        <h3>问题修复</h3>
                        <ul class="fixes-list">
                            <li>修复初始版本中的稳定性问题</li>
                            <li>修正验证逻辑中的边界情况</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        
        <footer>
            <p>明七工作室 © 2023 | 更新说明最后更新于 2025年9月15日</p>
            <p>有任何问题请联系 18210951635.com</p>
        </footer>
    </div>

    <script>
        // 自动检测用户操作系统并高亮对应下载选项
        function detectOS() {
            const userAgent = navigator.userAgent;
            let os = 'all';
            
            if (userAgent.includes('Win')) {
                os = 'windows';
            } else if (userAgent.includes('Mac')) {
                os = 'macos';
            } else if (userAgent.includes('Linux') || userAgent.includes('X11')) {
                os = 'linux';
            }
            
            return os;
        }
        
        // 高亮对应平台的下载选项
        function highlightPlatform(platform) {
            // 移除所有高亮
            document.querySelectorAll('.platform-btn').forEach(btn => {
                btn.classList.remove('active');
            });
            
            document.querySelectorAll('.download-card').forEach(card => {
                card.classList.remove('highlighted');
            });
            
            // 高亮对应平台按钮
            const platformBtn = document.querySelector(`.platform-btn[data-platform="${platform}"]`);
            if (platformBtn) {
                platformBtn.classList.add('active');
            }
            
            // 高亮对应平台的下载卡片
            document.querySelectorAll('.download-card').forEach(card => {
                const cardPlatforms = card.getAttribute('data-platform').split(' ');
                if (cardPlatforms.includes(platform) || platform === 'all') {
                    card.classList.add('highlighted');
                }
            });
        }
        
        // 初始化页面
        document.addEventListener('DOMContentLoaded', function() {
            const detectedOS = detectOS();
            highlightPlatform(detectedOS);
            
            // 添加平台选择按钮事件监听
            document.querySelectorAll('.platform-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    const platform = this.getAttribute('data-platform');
                    highlightPlatform(platform);
                });
            });
        });
    </script>
</body>
</html>
